<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
<div th:replace="header :: header"></div>
<!-- <h1 th:text="${well}">&nbsp;</h1> -->
<!-- <h1>欢迎来到实力至上主义的教室.....</h1> -->
<div>
	<table border='1' cellspacing='0' cellpadding='5px'>
		<thead>
			<tr>
				<td>序号</td>
				<td>订单号</td>
				<td>下单餐桌</td>
				<td>订单总价</td>
				<td>下单时间</td>
				<td>订单状态</td>
				<td>操作</td>
			</tr>
		</thead>
		<tbody>
			<tr th:each="order,index : ${orders}">
				<td th:text="${index.index+1}"></td>
				<td th:text="${order.id}"></td>
				<td th:text="${order.dinnerTable.tableName}"></td>
				<td th:text="${order.totalPrice}"></td>
				<td th:text="${#calendars.format(order.orderTime,'yyyy-MM-dd hh:mm:ss')}"></td>
				<td th:text="${order.orderStatus}"></td>
				<td> <button disabled="disabled" onClick="">详细</button> </td>
				<tr th:each="orderDetail,dindex : ${order.orderDetailList}">
					<td ></td>
					<td th:text="${dindex.index+1}"></td>
					<td th:text="${orderDetail.food.foodName}"></td>
					<td th:text="${orderDetail.foodCount}"></td>
					<td th:text="${orderDetail.foodMoney}"></td>
				</tr>
			</tr>
		</tbody>
	</table>
</div>
<div th:replace="footer :: footer"></div>
</body>
</html>